<template>
  <div class="demo">
    <div class="demo-title">禁用</div>
    <div class="demo-content">
      <Space direction="vertical">
        <DatePicker v-model:value="value1" />
        <DatePicker v-model:value="value2" disabled picker="month" />
        <DatePicker.RangePicker v-model:value="value3" disabled />
        <DatePicker.RangePicker v-model:value="value4" :disabled="[false, true]" />
      </Space>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import dayjs, { Dayjs } from 'dayjs';
  import Space from '@sscd/space';
  import DatePicker from '@sscd/date-picker';
  const dateFormat = 'YYYY-MM-DD';
  const value1 = ref<Dayjs>(dayjs('2015-06-06', dateFormat));
  const value2 = ref<Dayjs>(dayjs('2015-06', 'YYYY-MM'));
  const value3 = ref<[Dayjs, Dayjs]>([
    dayjs('2015-06-06', dateFormat),
    dayjs('2015-06-06', dateFormat),
  ]);
  const value4 = ref<[Dayjs, Dayjs]>([
    dayjs('2019-09-03', dateFormat),
    dayjs('2019-11-22', dateFormat),
  ]);
</script>
